package com.wcy.util.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

@AllArgsConstructor
@Data
@NoArgsConstructor
public class AuthRequest {
    private String username;
    private String password;
    private String randomCode;

    public AuthRequest(Map<String, Object> map) {
        this.username = (String) map.get("username");
        this.password = (String) map.get("password");
        this.randomCode = (String) map.get("randomCode");
    }
}
